package com.quangao.struts2.action;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;


/**
 * 处理登录的Action
 * @author NONE
 * @date 2012-04-27
 *
 */
public class LoginAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= -3132936006201450568L;
	private String userName;
	private String password;
	static Logger logger = Logger.getLogger(LoginAction.class);



	public String login ( )
	{
		
		if (null != userName && userName.equals("velocity") && null != password
				&& password.equals("velocity"))
		{
			return SUCCESS;
		}
		return "ERROR";
		
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	

	


	
	
}
